/*  header-comment
/*  file   : /Users/arida/react-hrm-h5/src/actions/finish/index
/*  author : arida
/*  date   : 2017-6-4 18:27:38
/*  last   : 2017-8-2 11:40:2
*/
import { createAction } from "redux-actions";
import fetch from "../../utils/fetch.js";
import { get } from "../../utils/db";
import { fetchUser } from '../welcome/index'

export const getUser = fetchUser;
export const getCompany = createAction("FINISH_GET_COMPANY");

export const fetchCompanyInfo = () => dispatch =>
  dispatch(
    getCompany(
      fetch(`${get("baseUrl")}getCompanyInfo`, {
        meta: {
          dipId: 63673
        }
      })
    )
  );
